@layout("/backend/common/_container.html"){
<div class="dhcc-form">
    <form method='post' id="sdsIndexHeaderInfoForm" name="sdsIndexHeaderInfoForm" enctype="multipart/form-data">

        <#Hidden id="id" value="${indexHeaderMap.id}"/>
        <#Hidden id="entityId" value="${indexHeaderMap.entityId}"/>
        <#Input id="entityDesc" name="病种" value="" readonly="true"/>
        <#Input id="title" name="指标名称" value="${indexHeaderMap.title}"/>
        @var indexTypeMap={'1':'合计指标','2':'明细指标'};
        <#Select id="indexType" name="统计类型" map="${indexTypeMap}" value="${indexHeaderMap.indexType}">
        </#Select>
        <#Input id="parentName" name="父级编号" value="${indexHeaderMap.parentName}"
            hidden="parentId" readonly="readonly" hiddenValue="${indexHeaderMap.parentId}"
            clickFun="SdsIndexHeaderInfoDlg.showIndexSelectTree(); return false;"
            style="background-color: #ffffff !important;"
            selectFlag="true" selectId="pTreeDiv" selectTreeId="pTree" selectStyle="width:244px !important;"/>
        @var headerTypeMap={'1':'父指标','2':'末级指标'};
        <#Select id="headerType" name="指标类型" map="${headerTypeMap}" value="${indexHeaderMap.headerType}" onSelect="SdsIndexHeaderInfoDlg.selectHeaderType">
        </#Select>
        <div id="field_collapse" class="collapse">
            <#Input id="field" name="指标字段" value="${indexHeaderMap.field}" />
        </div>
        <#Input id="btResume" name="备注" value="${indexHeaderMap.btResume}"/>
        <#Input id="sort" name="排序" type="number" value="${indexHeaderMap.sort}"/>
        <#Radio id="btIsActive" name="有效标志" code="status" value="${indexHeaderMap.btIsActive}"/>
        <#Radio id="isImportant" name="重点指标" code="status" value="${indexHeaderMap.isImportant}"/>
        <!--<#Radio id="analysisStatus" name="统计状态" code="status" value="${indexHeaderMap.analysisStatus}"/>-->
        <div class="toolbar">
            <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="SdsIndexHeaderInfoDlg.editSubmit()"/>
            <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close" clickFun="SdsIndexHeaderInfoDlg.close()"/>
        </div>
    </form>
</div>
<script src="${ctxPath}/static/backend/sds/sdsindexheader/sdsindexheader_info.js"></script>
@}
